package com.bitcola.security.admin.rest;

import com.bitcola.security.admin.biz.ColaAppBiz;
import com.bitcola.security.admin.vo.ColaConfigVO;
import com.bitcola.security.common.msg.AppResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * app管理,升级维护
 *
 * @author wx
 * @create 2018-10-30 19:04
 **/
@RestController
@RequestMapping("/app")
public class ColaAppController {
    @Autowired
    private ColaAppBiz colaAppBiz;

    @RequestMapping("/list")
    public AppResponse list() {
        return colaAppBiz.list();
    }

    @PutMapping("/update")
    public AppResponse modify(@RequestBody ColaConfigVO colaConfig) {
        return colaAppBiz.update(colaConfig);
    }

}
